/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

/* Includes ------------------------------------------------------------------*/
#include "stm32f30x.h"
#include "stm32f30x_it.h"
#include "fifo.h"
#include "utils.h"
#include "adc.h"
#include "gpio.h"
#include "pwm.h"
#include "usart.h"

/* Exported types ------------------------------------------------------------*/

/* Exported constants --------------------------------------------------------*/

/* Private defines -----------------------------------------------------------*/
#define SAFETY_MARGIN_JOYSTICK 20
#define SYSTICK_HZ 1000
#define SCHEDULER_PERIOD 10
#define SCHEDULER_FREQUENCY 100
#define RS485DEtime 20
/* Exported macro ------------------------------------------------------------*/
#define COUNT_OF(array) (sizeof(array) / sizeof(array[0]))
/* Exported functions ------------------------------------------------------- */
void scheduler (void);

#endif /* __MAIN_H */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
